POV-Ray : Newsgroups : povray.general : vcross error : Re: vcross error Server Time
5 Aug 2024 10:18:17 EDT (-0400)
  Re: vcross error  
From: jfmiller
Date: 9 Oct 2002 17:10:47
Message: <3da49b57$1@news.povray.org>
#declare drx1=vnormalize(vcross(y+0.001,dr1)

y+0.001  <--  `y` is a vector <0,1,0>   Adding a scaler to a vector is
normally not a good idea.

I'm not sure what POV does with this but my guess is it is the source of
your error.

JFMILLER

"Greg M. Johnson" <gregj:-)565### [at] aolcom> wrote in message
news:3da47966@news.povray.org...
> Why would the following code:
>
>         #declare p0=MyTrack(nclock);
>         #declare p1=MyTrack(nclock+1/npoints);
>         #declare p2=MyTrack(nclock+2/npoints);
>
>         #declare dr1=p1-p0;
>         #declare drx1=vnormalize(vcross(y+0.001,dr1));
> //this_is_line_76
>         #declare dry1=vnormalize(vcross(drx1-0.0001,dr1));
> //this_is_line_77
>
>
>
> give me an error of:
>
> File: C:\pov35\ini\sweep05.pov  Line: 76
> Error: Normalizing zero-length vector.
> File: C:\pov35\ini\sweep05.pov  Line: 77
> Error: Normalizing zero-length vector.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.